package com.zhuss.team.processor;

import com.zhuss.bean.bo.team.information.CreateInfoSonBo;
import com.zhuss.common.AbstractProcessor;
import com.zhuss.common.Processor;
import com.zhuss.exception.WpsException;
import com.zhuss.team.db.dao.ext.InformationSonDao;
import com.zhuss.team.db.entity.InformationSon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/3 14:32
 */
@Component("informationSonCreate")
public class InformationSonCreate extends AbstractProcessor<Object, CreateInfoSonBo> implements Processor<Object, CreateInfoSonBo> {

    @Autowired
    private InformationSonDao informationSonDao;

    @Override
    public Object process(CreateInfoSonBo bo) throws WpsException {
        informationSonDao.createBatch(bo);
        return null;
    }

    @Override
    public Object log(CreateInfoSonBo createInfoSonBo) throws WpsException {
        return null;
    }

    @Override
    public void check(CreateInfoSonBo createInfoSonBo) throws WpsException {

    }
}
